﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PowerControl
{
    public abstract class Antenna : Positionable
    {
        protected double gain;
        private double transmittingPower;
        private double sensibility;

        public double Sensibility
        {
            get { return sensibility; }
            set { sensibility = value; }
        }

        public Antenna()
        {
            gain = 10;
            transmittingPower = 10;
        }

        public double Gain
        {
            get
            {
                return this.getGain();
            }
            set
            {
                this.gain = value;
            }
        }

        abstract public double getGain();

        public double TransmittingPower
        {
            get
            {
                return this.transmittingPower;
            }
            set
            {
                this.transmittingPower = value;
            }
        }
    }
}
